<?php 
//header("Location:http://www.google.com");
include('controllers/lib.php');;
$object=new ContentController();
$event= new EventController();
$system= new SystemController();
$register= new RegisterController();
//$print=$system->Validate($_REQUEST);
//echo $print;
echo "TEST";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

  <head>
	<title>One Night Stand Home</title>
	<link rel="stylesheet" media="screen" type="text/css" href="style.css" />
    <meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
   
  </head>

  <body>
    <div id="page">
	  <div id="header">
	    <div id="logo">
		<!-- type your logo and small slogan here -->
		<p>One Night Stand<span class="green"></span></p>
		<div id="slogan">
		  <p>the night everyone's got game... </p></div>
		<!-- end logo -->
		</div>
		<div id="nav">
		  <div id="nav-menu-left"></div>
		  <div id="nav-menu">
		  <!-- start of navigation -->
		    <ul>
			  <li><a href="index.php">Home</a></li>
			  <li><a href="RegisterView.php">Events</a></li>
			  <li><a href="EventView.php">Register</a></li>
			  <li><a href="AboutView.php">About the Event</a></li>
			  <li><a href="SponsorView.php">Sponsors</a></li>
			  <li></li>
			</ul>
			<!-- end navigation -->
          </div>
		  <div id="nav-menu-right"></div>
		</div>
	  </div>
	  <div class="clearfloats"></div>
	  <div id="header2">
	    <!-- the large header slogan which is over top of the grass image can either be changed, or removed below -->
	    <div id="header2-slogan1"></div>
	    <div id="header2-slogan2"><p>&nbsp;</p></div>
	    <!-- end header slogan -->
	  </div>
	  
	  <div id="content">
	    <div class="content-padding">
		  <!-- page content below -->
	     <?php
		 //Check to make sure they were authorized to come here
		 //echo $_SESSION[permission];
		 if($_SESSION[permission]=="granted")
		 {
			
			 unset($_SESSION[permission]);
			 $array=$_SESSION[currentQuery];
			if($array[type]=="TeamEvent")
			{
				$register->RegisterTeam($array[id], $array[team_name], $array[name0],$array[gtid0], $array[gtuser0]);
				$register->ProcessTeam($array[id], $array, $array[team_name]);
			}
			else
			{
				$register->RegisterIndiv($array[id], $array[name0], $array[gtid0], $array[gtuser0]);
			}
			echo "<h1> Thank you for signing up! We can't wait to see you on the Friday of Dead Week for your ONE NIGHT STAND!</h1>";
			echo "<p> You should receive an email shortly confirming your sign up. The person whose GT login is currently logged in should receive the confirmation. If you did not get a confirmation email, please email the following email. Please email <a href='mailto:ryan.fahsel@gmail.com'>Ryan Fahsel</a> if you have any questions or want to drop an event.</p>";
			
		 }
		 else
		 {
			echo "<h1> Plesae start the registration process over. Your session has expired. Sorry for any trouble!</h1>"; 
		 }
		 ?>
     

       
	    </div>
	  </div>
	  <div id="body-divider"></div><!-- the division between the light green content section, and the dark -->
	  <div id="content2">
	    <div class="content-padding">
		  <!-- content blocks (three side by side), can remove if needed, this was just an example -->
		  <div class="content2-block"></div>
		  <div class="content-divider"></div>
		  <div class="content2-block">
		    <h3><em><strong><?php $object->getFooterTitle()?></strong></em></h3>
		    <p><?php $object->getFooter()?><</p>
		  </div>
		  <div class="content-divider"></div>
		  <div class="clearfloats"></div>
		</div>
      </div>
	  <div id="footer-div"></div>
	  <div id="footer">
	    <p>Website &copy; Copyright FreShGA 2010, All rights reserved. <a href="http://www.steves-templates.com">website templates</a></p>
	  </div>
	</div>
  </body>
</html>